#include <iostream>
#include "Vehicle.h"
#include "Car.h"
#include "boat.h"
#include "airplane.h"

using namespace std;

void DoTalkAboutVehicleList( Vehicle **pVehicle, int numVehicles )
{
	for ( int i = 0; i < numVehicles; ++i )
	{
		pVehicle[i]->TalkAboutSelf();
	}
}

int main( void )
{
	/*Vehicle v1( "asdasda", 0.0f, UNKNOWN );

	cout << v1.GetName() << endl;
	cout << v1.GetName() << endl;*/

	//v.GetName() = "asdasdasdas";

	Car car("Pontiac", 1000.0f);

	
	Vehicle *pVehicle/* = &v1*/;
	Car *pCar = &car;

	pVehicle = &car;

	int n;
	float f;

	//int *pN = &f;

	Boat boat("titanic", 200.0f);
	Airplane airplane("PAL", 500.0f);

	Vehicle *vehicleList[] = { /*&v1,*/ &boat, &airplane, &car };

	DoTalkAboutVehicleList( vehicleList, sizeof(vehicleList)/sizeof(*vehicleList) );
	
	child ch;
	ch.TalkAboutSelf();
	//pVehicle = &boat;




	return 0;
}